Where in mongidb does it stored the node name/details

I have MongoDB installed in my Kubernetes cluster, and I have this use case, to implement an init container that checks the node name and implements the logic. I want to understand, wherein MongoDB does it stores the node name/details