Both those names are determined dynamically when the server and database are started. There are several ways you can determine them:
First, if you can connect to the database, you can ask it (but that might be a Catch 22 situation):
SELECT PROPERTY ( 'Name' ) AS ServerName,
DB_PROPERTY ( 'Name' ) AS DatabaseName;
ServerName,DatabaseName
'inventory16_xps','inventory16'
Second, if you can see the command line that started the database, you may see this:
...dbsrv16 ... -n ServerName ... c:\path\dbfile.db ... -n DatabaseName
If the first -n exists then that is the ServerName.
If the first -n does not exist then the ServerName is the same as the DatabaseName (to be determined).
If the second -n exists then that is the DatabaseName.
If the second -n does not exist then the DatabaseName is the same as the file name "dbfile".
In many cases neither -n is specified so dbfile is both the ServerName and EngineName.
Third, if you can see the diagnostic console log window or dbsrv16 -o file.txt then it displays both names.