Windows 11/10 offers a feature that can notify whenever a connected USB device has issues. It can be with the device you just plugged into the computer or devices like printers, external storage ...
The first and foremost thing you should do to stop random USB connection or disconnection sounds is to remove all the USB devices and then reconnect them. You should remove them one-by-one and check ...