Context first: We have two version of SCOM installed. An SCOM 2007 installation and a recently installed 2012 R2. After much swearing and dirty looks from a colleague one cubicle over I'm starting to figure this product out...
I can see that SCOM agent is installed on a particular server by checking for the windows service HealthService.
What I want to know is how do I tell which version of SCOM the agent is talking to?