Are the speakers powered via USB (ie no mains input required)?
If yes, it could be caused by insufficient power at the ports. As a test, unplug the speakers.
If KB & mouse now work okay, it's a USB power problem.
Buy a "mains-powered USB hub" , plug the hub in to mains wall-socket and computer.
Now plug speakers in to that hub.