I think a hardmod with a rashberry pi would give you the CID pretty easily as that could be retrieved with certain EMMC commands. If you have Linux I think you could do it on any PC if you have the right card reader that gives it low level access. (some newer ones might not)
As for ConoleID, that's only retrievable from dev.kp or from an exported TAD file from Data Management. The register for it is normally write-only for normal DSiWare hax entrypoints. Any TWL mode entry point has access to the NAND CID, so getting that one isn't too difficult.
If you didn't have nand mod and managed to dump your nand via fwtool for example, you already have a means of getting the NAND CID with just homebrew running from the entry point you used. fwtool has an option for dumping that.
Assuming you aren't using an outdated sudokuhax payload. The older one before it went open source poisened the NAND CID in ram so you will not get valid reults from it from the usual memory location if running that version of sudokuhax.