Is it possible for an appication (macOS) to examine installed MDM profiles?

The profiles command shows them, but the Store file/directory is blocked off from access (which, I suppose, kinda makes sense).

(We are in the process of getting customers to upgrade the profile, and if I can see whether our profile has an entry, then I can behave differently.)