There is a piece of legislation related to the transfer of offenders. It applies to circumstances in which people are actually convicted of offences and serving sentences. That offender can bring an application to have their sentence transferred to be served in another country.
Prisoner exchange as a concept doesn't really exist in the law.