The quickest solution to this would probably be to copy the top node elevations to ALL nodes of a nodal User Data distribution and then use the value at the current node in this distribution.
Aside from this workaround, and assuming that you're working in a layered model, there is a way within the expression editor as well: There is a template for getting the value at a specific node index (indicated by brackets in the toolbar, check out the tooltips). With this you can get Elev(node index). But what's the node index of the top node corresponding to your current node? As FEFLOW numbers the nodes slice by slice and in the same order in each slice, you can get the node index of the top node by current node index (Idxn) minus (Current Slice Number Nos - 1) multiplied with the number of nodes per slice Nonslice. All the respective numbers can be found in the Mesh - Node Data section on the right hand side of the dialog.