Once the bank owns it, you can buy it. This one already has accepted offers on it.
I would use a search engine to find info on Foreclosures in MA. There is not a fast answer to this question. There are investor groups that run classes to help you get started, though. And you may find enough info online to help you get started.
Normally however, you can see what liens are on the property before it is foreclosed by searching the appropriate registry of deeds (in MA). There is a pecking order - the one recorded first has the highest priority, but the federal govt and in some cases state and local can supercede that. It is always best to have an attorney review the title if you aren't sure what you are doing.
In the case of the property you asked about, the bank already owns it, so there are probably no liens or claims on the property other than the bank's. Again, ask a real estate lawyer who works with foreclosures to look at the title and let you know.
(Please note: when you choose an answer as a Best Answer, or at least give a thumbs up, it helps those who answer questions here.)