Try this:
db.executeDbCommand({ buildInfo : 1 }, function(err, buildinfo) {
console.log('V', buildinfo.documents[0].version);
});
EDIT: shorter version using command()
:
db.command({ buildInfo : 1 }, function(err, buildinfo) {
console.log('V', buildinfo.version);
});
To get a list of commands that you can execute:
db.command({ listCommands : 1 }, function(err, response) {
console.log(response.commands);
});