While I don't have any direct knowledge on the subject, I suspect that what you want isn't possible. The CDDB info is indexed by a number that is generated from the CD's table of contents. The barcode contains an entirely different, unrelated number which CDDB doesn't know anything about...