Microsoft exposes the TCP socket table per process through WMI. The Powershell command is:
gwmi -Class MSFT_NetTcpConnection -Namespace Root\StandardCimv2
If we could scan that as well and link it to other assets by their IP address, we could generate tables or diagrams which lay out how servers and services tie together. This would be immensely useful.
OwningProcess, RemoteAddress, RemotePort