There may be a better way to do this, but I’ve used mx.session.getConstants() to get all the constants that have been exposed to the client.
You can then filter to find the name of the constant you are interested in, pass this into map to get the value, and optionally pass into reduce to apply a default value if necessary.