Yea if it's a code 39/upc barcode it is just a series of numbers/text and won't contain any additional data (in most cases right below the stripes you will see the text it represents) . You will most likely need a QR/2D Barcode (the square blocks you see these days) to contain all these additional data like names/surnames.
The stripes (code 39) barcode is just a font like Arial/Times Roman , you can make it in Word. Simply put, these barcodes would probably not fit on your ID book/Card if it contained name+surname+id no (plus it would be different lengths for each person).
Your best bet, in absence of a lookup service is to use OCR (optical character recognition by taking a photo of ID Book/ID card and reading it into software that can read the text from an image)....i mean your name+surname is on a specific place on your ID book right? Then you probably won't need to read the barcode at all, just read the ID number.
I know Google have a bunch of tools , built into Google Drive , that can do exactly that.