Yes, you can use Xbox One to stream media.

Simply download Kodi for Xbox One and follow the instructions below.

Xbox & KODI Install Doc