I guess they check by the phone IMEI. So they always know which applications you had installed through Ovi (either paid and free). So as long as you keep using the same Nokia account and same phone, I suppose you will be able to reinstall the applications.