I am also curious about why you would want to do this.
Even in an encrypted ACCDE or MDE, the definitions and values of public constants CAN be viewed. For example:
AFAIAC, this is a potential security issue that should have been fixed years ago.
For that reason, I'm not going to provide any assistance in ways of retrieving the values externally.
Having said that, I agree with the comments made by both
@Pat Hartman and
@MajP.
If these are your own databases and you need to get the values of public constants externally, make the MDE a library reference database or better still, put the values into a settings table. If the values are for 'sensitive' data such as passwords, make sure you encrypt them to prevent anyone viewing the values without authorisation.
If you are trying to hack into someone else's databases without authorisation, then I'll just say it can be done but I'm not going to provide details