I have not gotten my script to work yet (frontend call issue). But I would think the function:
obs_sceneitem_get_source(scene_item) would get you there.
This would be in a for loop to iterate the scene items (i.e for _, scene_item in ipairs(scene_items) do)