For files, use the core file "sqlservr.exe" that is located under each SQL instance directory. For example,
C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\sqlservr.exe
For connection to SQL Server, use one of T-SQL queries as below.
SELECT
@@VERSION
AS
'SQL Server Version'
Both tell the detail of version number including SP and CU that are installed to SQL server instance.
Best Regards.
Yuhong
This posting is provided "AS IS" with no warranties, and confers no rights.