The XS500 engine is completely different from the other two, the differences have already been mentioned in earlier posts. However, many parts are shared with the XS650: electricals, wheels and brakes, controls, instruments, rubber bits, etc.
There is a lot of XS500 info at the TX/XS500 forum...