Yes, if you have a Google for "bavaria hin decoder" (HIN = Hull Identification Number), you shall find what you seek.
Bavaria HINs should all start with DE-BAV (DE = Deutschland = Germany), which are the country and manufacturer code. Do make sure you enter the dash, the decoder is a bit touchy about that.
However, when buying a boat the paperwork that you should verify (and receive if buying) are the original invoice to prove VAT was paid, which should give you an idea about when the boat was launched approximately. Don't buy a boat with missing/dubious paperwork. Also keep in mind that boats are often laid up in one year and finished/launched the next, for example my hull was built in 2000 but the boat wasn't launched until 2001, so it's not uncommon that production years are up to one year off.