For your first, there is no way to tell when in the past your homework was finished.
For your second, only the second version is correct.
Student or Learner
I'm done with my homework ( i think this one is correct ) means i finished my homework , but is it mean I just finished them now , or I finished them in the past ??
each one is correct :
I finished to do my homework
or I finished doing my homework
can you help me please :)))
I was really confused , thank you for your help