The list of your apps can be retrieved via the deploy api, see https://docs.mendix.com/apidocs-mxsdk/apidocs/deploy-api
The list of stories can be obtained via the stories api, see https://docs.mendix.com/apidocs-mxsdk/apidocs/stories-api
So I think you can already perform these actions.