cat /proc/vz/veinfo
Output : 101 0 137 XX.XX.XX.XX XX.XX.XX.XX

if there is output then u are on openVZ/virtuozzo VPS

if no output then you are on a Dedicated Server

btw: never tried Xen