Android 5.1 on Samsung Galaxy S4
We are just Android Users, it means, you need to follow the Sites or below link for find any update you need it :

SamMobile - Firmware Search

also, if you need 5.1.0 you can use custom roms if this version availabe for your phone.

good day.