To check whether an element has been flipped (Revit supports various flip type) use the Flipped component shared here.
Place under Grasshopper User Objects folder. Find in Revit > Custom panel
Query Flipped Elements
You can query elements of any category using the collector components, pass them on to the Flipped component and filter the results as needed: