**How do I detect if a remote client is running Remote Desktop Protocol? and it is also accepting remote desktop connections ??**

Like Open an port to detect HTTP and send request, receive request headers and see in request headers information about HTTP so I will know the person is running HTTP weather if he changed the port e.g: running HTTP 6551.