If you go to Windows Device Manager (lots of ways to get there, one is to hit the Windows button, then right-click on Computer, then click on Manage, and when Computer Management opens up you will see Device Manager on the left side - click on it to open Device Manager)
Once in Device Manager, check to see if your midi devices drivers are loaded and functional by expanding "Sound, video, and game Controllers".
I wonder if your Power Options may be set to allow selective turning off of idle USB devices.
Just a couple of thoughts there,
Bob Bone