I'm assuming you are using the TestStand API in CVI. If you already have a reference to the sequence that you want to examine, you can use TS_SequenceGetStep() and TS_StepGetProperty() to find Name or Type. To get each one in a step group, you can use TS_SequenceGetNumSteps() to set the number of iterations of a for loop in your code.
The section of the TestSTand ActiveX API Reference titled Accessing TestStand Objects Inside Other TestStand Objects shows an example of using these functions. Questions like these may be better served on the TestStand forums