I'm not exaclty sure if this is EXACTLY what you need, but try NBTSTAT.