alltimes,
I'm not completely sure how to understand your question, therefore I provide two different answers:
1. If you refer to nodes at the model boundary, you can use the functions IfmGetNumberOfBorders, IfmGetNumberOfBorderNodes, IfmIsExteriorBorder, and IfmGetBorderNode. You find a description of these in Appendix B of the IFM part in the online help.
2. In case you refer to nodes with boundary conditions, iterate over all nodes and check them for boundary conditions with IfmGetBCFlowType.
Good luck
Peter