Barcode scanning already works in calibre, too.
Connect a barcode scanner go to Add Books, select the option for importing a list of ISBNs, and start scanning ISBNs, which will print out like a keyboard, with isbn numbers spat out separated by line breaks.
calibre will even pull metadata from online sources.