how to detect Xbee in labview

You don’t. As far as the PC is concerned, it is a COM port.