Can I?
No, don't. Not only will it not sound as good as if you get a bit of space between them and give them each their own shelf, but the metal feet on the CDX2 will scratch the case of the XPS.
No.