nmcli device show <interfacename> | grep IP4.DNS
You can see your interfaces with
nmcli device status
also: https://linuxvox.com/blog/linux-list-dns-servers/