How to read disk encryption value if the application is Sandboxed

Am developing an application that creates custom VPN. I have enabled Sandbox properties. VPN will be granted based upon the device posture. Posture includes reading the disk encryption value, secureboot and Firewall values. Application just tries to fetch the values to provides its posture.

Since the application is sandboxed, it is getting denied to read the above mentioned values.

How to achieve this with Sandboxed enabled?

How to read disk encryption value if the application is Sandboxed
 
 
Q