Check for API to Change Settings?

Hello! The project I am working on currently utilizes RTX, but not everyone has a card capable of RTX. With RTX on, we want accurate shadows, so we have our cascaded shadows turned off. We do have a button to toggle between enabling and disabling RTX settings, but I’m wondering this:

Is there a way we can check for the API being used when the game launches (Basically, see it there if the game is running DX11 or DX12) so we can set the lighting settings accordingly? I’m less of a programmer and more of an artist, so I’m not sure how we would go about doing this. Would be great to have though!

Thanks in advance for any and all help.