Вы можете получить это из вашего package.json:
const packageDetails = require('./package.json');
console.log('Platform: ', process.platform);
console.log('Node version: ', process.version);
console.log('Node dependencies: ', process.versions);
console.log('Server version: ', packageDetails.version);
let keys = Object.keys(packageDetails.dependencies);
console.log('Modules: ');
keys.forEach((k) => {
console.log(`${k}: ${packageDetails.dependencies[k]}`);
})