Seems pretty easy to me, in my opinion.
At work, Okta at least will handle it for us, but personally? It really sucks.
I will let your imagination run wild with what a nefarious person could do if every browser has the ability to detect if you are using a specific type of USB keyboard. I could point you in direction of device fingerprinting to start, but that's the bare minimum of what you expose.
[0]: https://www.yubico.com/product/yubikey-4-series/#yubikey-4-n...
WebAuthN is able to tell you that the web page wants you to put a hardware key in. That should be enough to be able to prompt users who've opted into using such a key elsewhere that they can do so here.