$isSecure = Mage::app()->getStore()->isCurrentlySecure();
This will return true if the current url is secure.