Sounds like you’re generally in the right area, you want to have the shotgun_mode.theMode() singleton to get to the tracking.info, where the version metadata is stored.
Have you seen the answer from Kessler here?
I think it’s generally what you’re looking for, does that help?