If you're talking about general diagnostics, that's probably not practical. If you're talking about something like an acceptance test, then it's possible to find the canonical spectral output, bound it and use Excel to determine if the spectral output from a given unit is within spec.
TTFN