On our 2014 Sunstar 31KE, the blue plastic device is the socket. Lift the 2 tabs on top and pull it straight back. The bulb will stay in the headlight.
Then, the larger black ring is the retaining nut for the bulb assembly. Turn it a quarter turn or so and that and the bulb should pull out. Looking at the bulb from the front to back, I think that would be a clockwise turn.