Not possible. Only recent InDesign CS6 purchases can be transferred.
And you can't buy CS5 anymore. Only CS6 if you have an older computer operating system because it's end-of-life and doesn't work on newer systems. And only by phone.
Your better bet is a Creative Cloud subscription.
I’m not even sure you can move a CS6 license anymore.