Getting the id of all the elements in a form with errors
You might need to write a custom module for this: 


Use hook_form_alter for the specific form and call form_get_errors.
Theme the results of form_get_erros with hook_theme to pass the results back to your theme.