Using the standard Python install (no extra packages) you can find SSH or other types of servers with my Python script.
It uses Python sockets to
- check if a port is open for each address in a subnet
- connects to that port, printing server messages
- optionally looks for a particular string to verify the server is enabled.
Another popular way to find servers with unknown IP address but known ports open is by using nmap.