I would love to but the .NET version of Godot does not support this yet. If you have any tips on how to do it I'm all ears.
u can create a small GDScript Autoload Singleton that uses JavaScriptBridge to fetch the WebGL version. After that, u can use the call () method in your codeto invoke that GDScript function dynamically.