Can I use it to play cds on the laptop?
is there a cable attached or do I have to buy one?
Normally there should be a USB cable.
That fits!
There should be a USB cable.
So you can play CDs and DVDs and burn synonymous.
Another tip:
Adhesive 4 rubber bumpers underneath. Thus, the part is difficult to slip and is better protected against shocks.
https://www.amazon.de/..._ss_i_3_19
https://www.amazon.de/...077TSLT96/
I have various variants of such buffers in my home in use.
That's fine.
Whether a cable is here you have to select yourself, you can tell no one here… Usually, however, cables are there.