Hi Dom,
No, it is not possible to achieve your requirement by SQL server query. We can use SQL query to get the information about SQL server. Such as the memory that currently be allocated to SQL server, etc.
Your issue is more related to windows server, suggest you add windows-server tag, people there will give you a better help. Thanks for your understanding.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".