Get a printer such as a Canon Pixma that is capable of doing it and use DVDs/CDs that are designed for that purpose. Failing that, get DVD sticky labels and print on those. They usually come with a neat little device for centring the label on the DVD / CD