please list your complete specs, including power supply.
are all the peripherals USB?
I suggest booting into linux and seeing if the same behavior exhibits itself. if so there is a hardware issue somewhere, USB, PSU, motherboard, something is wrong.
if everything is working good here and no aberrant power losses you can be assured the issue is in software, windows, drivers or settings, something is wrong.
Boot to a USB drive with linux on it. grab a USB drive, a copy of rufus and a linux distribution.
http://distrowatch.com/ has tons of differing linux distributions and download links. I personally am fond of linux mint with cinnamon.
https://rufus.ie/ the utility used to extract the ISO file to the USB drive.
use rufus to extract the selected ISO to the thumb drive. it will make the drive bootable and you can run linux from the drive once done.
Reboot into linux and proceed to test the hardware. connect to internet, watch videos, await problems.
if linux is good and stable the issue is most likely inside windows or otherwise software related.
this is a test of the hardware.