Hello,
no one is probably sure for answer of this question, but it is not possible in Mbed I think.
Multiple USB components - Mbed OS - Arm Mbed OS support forum
You probably need your own implementation or use semthing different where is TyniUSbe stack.
There were also an attempt of this- USBComposite - USB Composite support | Mbed
BR, Jan