Both are correct, but the verbs have different tenses. I have finally finished my homework is in the present perfect tense. It means you have been working on your homework and have just now finished it.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.