I assume you would only know this on request-basis, since domain,
protocol etc depends on how many bindings you have, and which binding
the visitor accessed your site at. Otherwise, you need to inspect the
configuration of the site.
To get it on request-basis, you can either do it on Initialize() on your
controller, or Session_OnStart() or BeinRequest-event on your
GlobalApplication/global.asax