With the usual caveat that it is not a 'best practice' to query the system tables, you can find the answer by executing:
while connected to the master database. You will get two records. One is the data file, one is the log file. You can narrow the query by adding:
WHERE name = 'master'
Edit to add: I did verify this against a SQL 2005 instance we are running in development, but it will also work in SQL2K.
Have you hugged your backup today?