You can gain information such as P2P group details, IP address of client connected to P2P, the connection status with server, availability of P2P relay, and etc. from Proud.CNetClient.
More details can be found from Proud.CNetClient guide.