How to check data in com port 5000?

Hi guys. I'm trying to check the status of data received in COM port 5000 then analyze all data. I'm using UdpClient on the receiving end but it crashes. Any workaround on this? I need someone to teach me how to check data in com port. I have Windows Vista 64 bit.
