The MicrosoftSharePointTeamServices response-header field provides information on SharePoint version.
To get the actual SharePoint version from the version number, please see How to determine SharePoint version using SharePoint web services?