You can just grab the other field's value from the request parameter map using the input field' name attribute. To get the name attribute of the input field do a view source to see what gets generated. See example below.
public void validate(FacesContext fc, UIComponent uic, Object o) throws ValidatorException {
String newPassword = fc.getExternalContext().getRequestParameterMap().get("centerForm:newPassword");
String newPassword2 = (String) o;
if(!newPassword.equals(newPassword2)){
FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_ERROR,"New Passwords do not match", null);
throw new ValidatorException(msg);
}
}