server URI or IP address:                                  port number:
    
This tool will report back on the brand and version of server running for a given URI or IP address and port number. If you don't know which port the server's running on, you should just assume it's port 80.
Source code for this program.
Disclaimer: not 100% accurate.