Hello Nils! Good news is that there is a way that you can access the quality settings of the comp using the After Effects script API. Here is the following codes you can use to execute to see if it helps:
// Get the current comp index
var comp = app.project.activeDependency;
// Get the current comp’s render settings
var settings = comp.renderSettings;
// Get the quality setting value
var quality = settings.quality;
console.log(“Quality: ” + quality);
This code will log the current quality setting of the comp to the console. You can modify the code in any ways to suit your needs, such as retrieving the settings for specific render engines or including a prompt to ask the user which quality setting they want to use. Hope that it helps and let me know if you have any questions! 🙂