I finally did something similar, I inserted the Use Excel file activity in a try/catch and I set a dummy password. If the Excel is password-protected, the password is wrong and it generates an exception, and if the Excel has no password, it works as well.
Your solution is better though because you get an explicit error message that ensures it fails because of the password.
Thanks for your help !!