「Winsock32.dll」でなく「Winsockコントロール」だよな
RemoteHost
RemoteHostIP
RemotePort
LocalHost
LocalHostIP
LocalPort
上記のプロパティを調べてみそ。
あと、GOOGLEで調べてみれば?サンプル一杯あるよ。