go to the app store and download it. iPhoto, iMovie, and GarageBand. They were free for me anyway.
I think you are missing the issue. When you buy a new Mac you can go to the App Store and "claim" your free iLife and iWorks apps using your AppleID. But there is no way to transfer that license to a new owner. The new owner will need to buy the apps under their AppleID.