There isn't a good way to do this. We didn't export the server version
of HTTP until master (aka 2.8), and even then its embedded into the
host page data object in the / HTML response. Which is never fun to
parse from a program.
But I did find a backdoor into the version for you. Its still not
pretty but may be workable.