Unfortunately, the scripting API has no access to any ship objects that are launched from another ship. This is handled entirely by the client code. The scripting API does not even have a function to tell how many fighters are on board, let alone what type, let alone give access to them.
This is really something that can only be implemented with the client source code. It was a nice thought though.