You want to know the SQL query to obtain the latest definitions installed on the Symantec Endpoint Protection Manager (SEPM) directly from the SEPM database without logging into the SEPM.
In the Microsoft SQL Server Management Studio open a new Query and type the following:
(Note- Select the SEPM site database (generally named "sem5" before entering query)
select * from guiparms
The query and results are shown below: