The phrase “thanks for confirming" is correct. The phrase “thanks for confirmation" would be better expressed as “thanks for your confirmation of"