You can scan barcodes on the Mac with Delicious Library (available for free from https://delicious-monster.com/). You can use it to scan in the barcodes of your CD / DVD collection, but I don't know if it will read the barcode formats used by USPS/FedEx/UPS.