Heya, what you are going to want to do is open the control panel > type in search 'power' > Under 'Power Options' select 'Edit Power Plan' > you can then change when your computer goes to sleep (if you click 'change advanced settings' you can customise it even further
Hope this helped!