You'd need a database and probably an application to connect the database to the barcode reader.

I can't really help much on those two parts, so I hope you find someone that is able which database to use.