They are automatically added to Find My iPhone when you turn it on in Settings>iCloud on the phone. When you sign in with the iCloud ID, either on icloud.com or on the Find My iPhone app, it will automatically list all the devices that are using the iCloud ID you signed in with.