Is it possible to get Jobserver stats without the Dashboard?

Is it possible to get Jobserver stats without the Dashboard?

I want to see a status in my program that shows if a job server is currently active without opening the dashboard.

Is there a way to show this?

It is not impossible yeah. You can manually query the database if you want.
I have a SQL script that monitors for active servers by doing a simple query.

SELECT DATEDIFF(MINUTE, [LastHeartbeat], GETUTCDATE()) AS 'LastHeartbeat'
  FROM [HangFire].[Server]
 WHERE [Id] LIKE '%ServerName%'