Being depressed/homesick freshman year and struggling

Please take advantage of the student counseling services about your depression.

About your grades, you need to start attending every class. I think it is unlikely that you are attending every class and keeping up with the readings and homework if you are getting Ds and F grades. Attending office hours is a great idea, too, but you need to keep up with the material in order to be able to ask relevant questions. Good luck!