The structure
A VIN is 17 characters. The first three are the World Manufacturer Identifier; BMW's WBA/WBS/WBX prefixes identify a BMW passenger car. Position 10 is the model year, position 11 the plant.
What it does not say
The VIN identifies the chassis and build, not the fitted options or the current fault state. Options and software level come from the modules themselves — read them over K+DCAN or ENET.
Read the modules
BeeEmUu reads vehicle identity and module data directly; see the protocols guide for how the identity requests are framed.