Indeed the solution is relatively simple: the node numbering in FEFLOW starts on slice 1, then slice 2, etc. The order of nodes in each slice is identical. So if you know the node number of the well on slice 1, the node number on slice 2 is this number plus the number of nodes per slice (IfmGetNumberOfNodesPerSlice).