The "Latest on Manager" is the most current AV/AS content on SEPM. You can pull it from the file system. Under <SEPM installation folder>\inetpub\content, you will find a folder starting with {07B...} containing the 64-Bit AV/AS content. The folder starting with {535c...} is containing the 32-Bit stuff. Within these folders there are subfolders with the name schema YYMMDDRRR (R = release). The youngest folder contains the info you are needing.
If your SEPM is downloading only one type of content (32-Bit or 64-Bit), it's necessary to get the proper folder. Otherwise, it doesn't matter which folder you use.
If you want to pull your info from the database, the following q&d command is working for me (embedded DB). Example for 32-Bit AV/AS content:
SELECT TOP 1 VERSION
FROM PATTERN
WHERE CLIENT_MONIKER = '{535CB6A4-441F-4e8a-A897-804CD859100E}'
ORDER BY PATTERNDATE DESC
All what you need is in the Pattern table.
If your SEPM is only downloading 64-Bit content, you have to change the WHERE line to 64-Bit moniker.
HTH!