It looks like there is no script API to get this information, I thought it was saved in ProjectSettings
regardless but it isn't.
I see it is saved in the export_presets.cfg
.
If you want to access this from script you may ask for it in the issue tracker.