How to query etcd

i am running a baremetal kuberent cluster and would like to learn the etcd back configratioin.

etcd --version
Command ‘etcd’ not found, is it a correct way to query etcd by using:
“kubectl -n kube-system exec etcd-pod — etcd --version” ?