You will require a hard drive enclosure or case if you want to recover data from an XBOX One hard drive. After acquiring a hard drive enclosure, follow these steps:
Disconnect your XBOX One hard drive and put it in the enclosure.
Connect the HDD to your computer.
Scan the drive using data recovery like Disk Drill to recover your data.