There are several optimisations you can or should make in Windows. The most important are the power saving features. This includes CPU throtteling, HDD sleeping and USB sleeping. Also disabling some non-essential background processes that may be a part of Windows or other software you have installed. Make sure no tasks are running while you are working e.g. virus scanners, backups etc.
Enabling Windows God Mode is very handy for quickly getting to the deepest settings, but use it carefully! Simply create a new folder on your desktop and name it {ED7BA470-8E54-465E-825C-99712043E01C} (including the braces). That will give you an icon that you can now click on to get to a categorised list of advanced settings such as all the power saving settings that you want to disable.
It's worth searching Google for "optimizing windows 10 for audio production" for all the fine details.