Chrome supports a USB api that could potentially work for that, https://developer.chrome.com/docs/extensions/reference/usb/
sadly though it's chrome only, not a standard of any kind (no other browsers support it that I know of). ESPHome can use it to program microcontrollers (along with the serial port support).