You could try USB Raptor - it’s Windows only and works as a wrapper to use your drive as the authentication since you need special hardware to make an actual HID authentication device as @SpaceNoodle correctly stated.
Download USB Raptor for free. Lock and unlock your computer using USB flash drives as keys. Turn any USB flash drive to a computer lock and unlock key! USB Raptor can lock the system once a specific USB drive is removed from the computer and unlock when the drive is plugged in again to any USB port.
Have you seen this? flipperzero.one
You can do way more than just 2FA with it. If you’re interested in security, there are all kinds of things you can do. It’s getting some heat because of people using them maliciously, but if you aren’t ethically compromised, it’s a great tool to play around with and find potential vulnerabilities in your own systems and learn a lot in the process.
Also, there are custom firmware loads and open source apps that open up some other avenues with a highly engaged community.
github.com/ClaraCrazy/Flipper-Xtreme github.com/UberGuidoZ/Flipper
It’s super fun, I’ve barely scratched the surface with mine.