Have a look at:
https://apidocs.mendix.com/5/runtime/com/mendix/core/conf/Configuration.html
look for the term jdbc on the page to get an idea on how to get the jdbc info.
Not sure if this is still supported in newer versions though