Easy way where feeding sockets is to use plug in tester. Martindale make the one most people use. Many other testers will do same job from PAT tester to Earth Loop Impedance tester as they test polarity before going into full test mode.
All these testers measure the voltage to earth and neutral should be within a few volts to earth and line should be near supply volts to earth.
That is assuming your working on normal domestic supply. On other supplies then it can get more complicated.
DIY how to tutorial projects and guides - Did you know we have a DIY Projects section? Well, if no, then we certainly do! Within this area of our site have literally hundreds of how-to guides and tutorials that cover a huge range of home improvement tasks. Each page also comes with pictures and a video to make completing those jobs even easier!