By "accessing Calibre" do you mean accessing calibre's database? If so, then do the SQL query to look up the record. If you are running calibre's command line programs from perl, then you might consider using a calibredb to dump a list of all the books, load them into a dict, and then look them up there.
|