Xt m8000 is an 11 speed group set so those hubs are 11 speed compatible!
They are NOT compatible. Whilst Shimano Road and MTB 11 speed cassettes have the same sprocket to sprocket spacing, the spline width on the hub is wider on road. MTB 11 speed is the same spline width as MTB 10 speed, and the largest sprocket of the 11 speed is offset towards the spokes.
I don’t want to spend/waste much more on it what are the chances of getting a RS505 and swapping the internals over
It’s not just the guts/freehub that is different – 11 speed road hub shells are narrower than their 10 speed road and 10/11 speed mtg hub colleagues. The spoke flange on the drive side is slightly closer to the centre of the hub to accommodate the wider freewheel body.