Right click on the desktop and go to Display Settings, then click 'Power & sleep' on the left, then click 'Additional power settings' on the right.
Windows 10 enables you to change the time it takes for your computer to go into sleep mode. Click on the Start button and then select Settings from the drop-down list. Click on System from the Settings window. In the Setting window, select