Ah well, I don't know how easy it is to detect Proton :/
+ even if you were to detect proton that wouldn't even give you any info on wether you're running on a regular Linux machine or on Steamdeck.
I guess we're back to trying to implement steamworks.js
The alternative would be to do some machine profiling using CPU, GPU and screen size info to try and make an educated guess but that's not really a great idea.