Hi,
well I would recomend to use
WinPCap library. It is a networking library that will help you sniff the network traffic. You will register to OS, so that you will receive notification about every incoming/outgoing packet and its conent. Then you will just filter out those packet that you want and examin its content.
Hope this helps.
Best regards,
J.K.