There are a few ways to do this.
If the data packet from the com device is always the same length, loop checking bytes at serial port until bytes at port equals the packet size, then read port.
If the data packet varies in size, you can watch the bytes at port, look for >0 and equal for two loop cycles. This wastes a loop cycle.
If your data packet has a terminating character, read bytes at port and use the string match pattern to identify the end of information.