To disable USB detection notifications in Windows 10 using the Registry Editor, navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR, and change the Start DWORD value to 4 to disable the connection entirely, or for a softer approach, go to Settings > Devices > USB and uncheck "Notify me if there are issues connecting to a USB device".