get current used proxy windows 7

C
netsh winhttp show proxynetsh.exe winhttp show proxy

Source

Also in C: