Directly, no.
However, if there are some visible services they will usually return a short information string. By comparing these information strings you can often make an informed guess about the host system.
It's likely to be a lot of work gathering enough information to make this reliable; I suggest looking at nmap (or python-nmap) which has already done this.