My understanding is that you are not allowed to do that. You need to email Harvard and ask to be considered for RD instead.
Even though you heard from Dartmouth a few days before Harvard’s REA decision date, it is still not allowed to apply REA to Harvard – this is because you had already applied ED to Dartmouth.
However, if a school that you like has ED2, you are allowed to apply there.