Accessing Planegeometry vertex z

You can loop through the array of vertices, conceptually something like that:
geometry.vertices.forEach( v => { v.z = noiseFunction( v.x, v.y ); } )

Maybe this topic will be helpful: Three.js + noisejs