where is the version of wp you are running stored?…

where is the version of wp you are running stored? In a template file? In the db somewhere?