You most likely want to do something like this:
From a SmartObjectComponent, get the registered handle and use that to get the slot(s) as defined in the SmartObject Defintion asset. Then target a specific slot, get its handle, and iterate on it.