Trim tank pumps on the 330/340 are run on the same logic as the main and transfer pumps. In that they have pressure switches which monitor the pressure created by the pump. If that pressure disagrees with the status of the pump then trim tank pump fault is declared on ECAM.
The pumps should then be selected off on OHP. This will stop the pumps running.