I don't think that would work, as capslock should only affect the letter keys (not e.g. turn "1" into "!") and the keyboard doesn't know which those keys are, as it depends on the layout configured in the OS.
Also, some layouts use shift lock (so actually turning 1 into !) instead of caps lock
Also, some layouts use shift lock (so actually turning 1 into !) instead of caps lock