Normaly all nodes should have the same version, so /api2/json/version is good enough for most situations. But you can also query the version on each node using /api2/json/nodes/{node}/version