When you admit to the crime of piracy, you are then liable for the punishment it entails as the law provides.
Is there an ongoing case for such? If yes, there should be a lawyer assigned for you by the court in case you cannot afford to have one. May warrant of arrest ba na naipakita sa iyo, if ever ikaw nga yung tinutukoy mo sa istorya mo?
As far as I know, your device won't be returned to you if you were found guilty, especially kung may imprisonment na kasama sa sentence mo as determined by a judge. After natapos yung prison term mo, dun pa lang maibabalik yung device mo.
If you have further questions, please seek the advice of a real lawyer so that you will be properly apprised of what you need to do.