qm list
If the VM ID is 100 (requires the guest to have the Qemu Guest Agent installed):
qm agent 100 network-get-interfaces