Netcraft (http://www.netcraft.com) has a cool tool for determining what server a particular site is running.
Here is my version of this tool, created using Perl and the LWP::UserAgent module.
URL: e.g. http://www.yoursite.com
Here is the code