I have the SE W580i running an unlocked firmware R7CA001, i want to upgrade to the latest firmware R8BE001. how do i know if my phone is RED52 or 53 and if i upgrade do i have to unlock it again.

thank you in advance i am new and just signed up.