Version and Distribution

If the client give us the IP address of his email
server, can I type some command through Internet to
find out the distribution and version of the email
server? If I can, may I know the step?