Proxy-address?

Is it possible to find out your proxy address?

This code shows IP, but not proxy:

do shell script “ipconfig getifaddr en1”

Thanks