Ok so I have found something that might work for your purposes, havent used it myself and there is only one instance of it being used in the entire game.
Its used when a race demands you remove a starbase and it calls the DestroyObject action.
This could probably be used in a standard trigger with the TargetType set to Ship.
However it would need to be something interactable that triggers it such as the ship arrives at an anomaly or using OnCostructShip as otherwise there is no way I know of to hook the target specifically.
Hope that helps.