+2  A: 

You will need to use P/Invoke:

GetTcpTable can be used to get all the TCP connections.

[DllImport("iphlpapi.dll")] 
public static extern int GetTcpTable( ... );

This article has example code.

Mitch Wheat
thanks. googling a bit for GetTcpTable brought me to this codeproject articlehttp://www.codeproject.com/KB/IP/iphlpapi.aspx?display=Printwhich wraps the PInvokes in a slightly nicer .net API
Ian