The brothers will finish

The brothers will finish school both together at the end of this year.
Is the “school” object of the verb “finish”? if not then what is the name(object, modifier etc) of the bold part above?

Yes, “school” is the object of “finish”.

“both together” is adverbial, describing the manner in which they will finish school.

I think I prefer the sentence without the word “both”.