Not that I am aware of. Basic weapon systems on ships and their targetting/behavior is hardcoded in the engine.
It is possible to have abilities that normally only target hostiles to be useable on your own or friendly ships but it would mean modding the relevant ability.entity files.
-dolynick