The first valve is a Watts "Series 009 Reduced Pressure Zone Assembly" with "two, in-line independent check valves, replaceable check seats with an intermediate relief valve, and ball valve test cocks." Yikes!
See...
Watts: 009 | Reduced Pressure Zone Assemblies | Backflow Prevention
I can't find the 2nd, but I would guess an adjustable(?), pressure only, relief/check valve? With the plumbing looped the way it is I can't imagine any other purpose. Perhaps the plumber was out of the normal pressure relief valves and "cobbled" this into the set-up? Where was it plumbed to off to the right?
This was on a hydronic heating system?