Blender is free but not sure about it loading x files.

Good old DelphiX can load .X through retained 3D mode. I guess it would be possible to further save the structure to other format.