To list all the environment variables and their values, simply run the "env" command:
That will include all the KMVAR_ Keyboard Maestro variables, but you can ignore them and look at what remains.
As @ComplexPoint says, you can just use the %MacName% or %MacUUID% tokens.