I think that tool Jerry linked to is total BS. I don't trust the creator of it. He's a sketch bag
On a serious note though, let me propose something -
I think you could setup
a reasonably high resolution DSLR pointed at a clean wall. Somewhere (probably off the left of the DSLR) position a stationary diffraction grating. Then, on the wall towards the left-most of your DSLR frame, put a little dot.
Shine a known laser (a 532 would be perfect) through the center of the diffraction grating. Aim the laser, through the grating, at the dot on your wall. Scale the camera's zoom so that the dot one to the right of your center dot, is over near the right hand side of the frame.
With everything stationary, shoot a frame.
Then swap the 532 with the laser you want to test. Shine the unknown laser through the center of the grating, with the central dot lined up with the same point on the wall. Obviously you need the dot one to the right of your center dot to also be on frame.
With everything stationary, shoot a frame.
I believe that with 4000 horizontal pixels, you would be able to apply the diffraction grating math to your two photos, and determine the unknown wavelength with a +/- of no more than 2nm.
You'd have 3 or 4 pixels to a nm, so even if you loose some precision in the process of determining the center of a dot, you could have a 10 pixel wide dot and still maintain a pretty good ~2nm precision. If you hugely underexposed the photo, you would minimize dot bleed.
Ultimately, this could be automated in software. IE, feed in 532 calibration photo, feed in unknown photo, calculate the unknown wavelength.
Because both photos would use a consistent grating-to-wall ratio, and a consistent grating lines/mm figure, you wouldn't actually need to measure that. You could use a constant variable for both figures, and by virtue of the fact that you have a known (532) photo for calibration, you'd never need to identify the value of those variables.
You might actually require two known wavelengths in order to correct for an off-angle camera plane, but even then, many members here have a 532 and a 473.