You can simply select the xpath in the receiver determination to filter and route the message to two target systems.
As the SOAP header will be part of your payload, simply select the field in xpath and add your condition to route your message.
SOAP header will be part of the main payload before the mapping itself