If you've got access to a set of vernier calipers, you just need to measure the length from under the head in mm and the thickness as in diameter of the threaded section. If the diameter was for example 6mm, then you'd need an M6 x the measured length.