What differentiates a MakeCode device drive from regular drives?

I couldn’t find a category that fit, so I just choose #Share-your-Arcade-projects-here help.


I’m trying to make a Python script that detects MakeCode devices in bootloader mode. When a MakeCode device enters bootloader mode, a drive shows up, where you can copy a .uf2 file to flash the device. Can I guarantee that CURRENT.UF2 is always on the drive? Or is the some attribute of the drive that differentiates it from regular drives?