Hello,
Thank you for posting in Q&A forum.
I recommend that you use Group Policy to disable Xbox through AppLocker at the following path: Computer Configuration > Windows Settings > Security Settings > Application Control Policies > AppLocker > Packaged app Rules > Microsoft.XboxApp.
I hope the information above is helpful.
Best regards
Zunhui
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.