i know there is a variable, function, or stored procedure that you can use to find the path that SQL Server is installed to:
e.g.:
c:\\Program Files\
what happens when you run this
select filename from sysaltfiles where name = db_name()
change db_name() to 'master' if you want to see where the master database lives