You can run the same tool used on Bitnodes locally to probe a Bitcoin client. Change the destination IP and port in https://github.com/ayeowch/bitnodes/blob/master/protocol.py#L505 and run python protocol.py. Feel free to modify the script to accept command-line argument, e.g. python protocol.py IP PORT as needed.