How do I determine if the game is running with RTX enabled?

I have a game that has ray-tracing enabled on it, and it works. However, if I make a Win64 package of the game and run it on a different machine that doesn’t have an RTX GPU it will fall back to using non-RTX techniques.

Is there a way in code or blueprints to tell if RTX is supported / enabled?

For example, I would like to tell if it is enabled so that I can turn off certain lights and replace them with different kinds of lights - this is for both performance and visuals.

Thanks

as an addendum, is there a way to enable and disable these effects at runtime when using a capable GPU? I noticed that the tooltip for r.RayTracing says you can use it to turn it on and off, but when you try it says it’s read only.