We need you to confirm to John that .
We need to confirm that
This could either mean
We insist on doing the confirming of
Or
We need someone to confirm to us that .
For the moment, we will assume the latter.
We need to confirm with you that ..
There is an implicit "to us" if no other party is given
We both need to confirm that .
See