Web3 JS Get Network

await web3.eth.net.getId();
KostasX