How to get Z position given X Y coords after Material Displacement

Any luck? Having same issue.