I'm interested to buy Scott Scale 960, but I would like to change rear hub from QR to 10 or 12mm thru-axle. Is it possible with or without changing rear hub? What kind of hub would it fit in case it would be needed to change?
You're unlikely to get hubs that convert from QR to thru-axle as part of a complete factory bike, though a good number of after market hubs are available which can be swapped between the different standards using end caps. I say unlikely but it's not impossible, the best thing would be to contact Scott directly or your local dealer with the enquiry.
The problem you have though, is that the frame is designed around a QR axle. It has vertical dropouts, spaced 141 mm apart (boost QR) and no threads for a thru axle. Thru axles just don't fit in the same frames, so you can't fit a thru axle hub in the bike anyway.
Unless... it has been designed with this swap in mind, as Fred(tMWD) has commented previous models have featured. I'm inferring that Fred's was a premium model though. Screenshot below of the current design of 960, looking to me like a traditional qr hanger design. In particular, the aluminium frame is inboard of the hanger, leading to a fixed geometry (O.L.D.), making me think this frame is designed with boost QR in mind only.
So again, unlikely on the frame being dual-compatible, but not for me to say impossible. An email to Scott could confirm.
Further reading on hubs: https://www.halowheels.com/frame-spacing-hub-o-l-d-information/