Can you check if a PSN code is valid without redeeming it?
The only way to check code is by trying to redeem it. After entering the code, if the code is valid, there will be a confirmation step, and you can cancel the operation. If the code is invalid or expired it will be rejected immediately with an error message.