CD/DVD identification software

Is there Linux software available which allows a DVD burner to ascertain whether it is burning to CD or DVD media.