Retrieve nodal z coordinate of ground surface

Dear community!

At the moment I'm seeking for a way to retrieve all nodal z-coordinates from my non-plane NURBS ground surface (after mesh discretization). Is there an easy solution I haven't considered yet? At the best, using Python Scripting?

Thanks a lot in advance!