As far as I know, there are no Mendix Java API calls available to achieve this.
I don't know what you're trying to achieve, but normally constants are known beforehand because they're constant ;)
Depending what you need the values for, would JVM parameters (accessible as system properties) or an external properties file do the job?