I think you'll need to parse it out of the ServerBindings property. The format is IP:Port:Hostname - if it's the default website, Hostname should be either blank or *.
There's also SecureBindings, which (since you want port #'s) you'd need to grab as well.