Client version/build date

In a situation where the same project is deployed on several gateways, I am looking for a way to see if they are running the same version. Is there a way to get to last build/deploy date or edit count or something like that from script ?

Thanks
Bo

The first thought that I have is if you have auditing enabled you could write a sql query against the audit log. You could do something like this on a query tag, or, sql binding

SELECT count(*) FROM audit_events WHERE action = 'project publish' and originating_system = 'project=test'