just ask whoever you are buying it from, and if they lie, bring it back.... simple as that.
or better yet, if you want to buy it, just boot the d@mn thing up and see. Carry a copy of memtest with you, that will test the memory and tell you the CPU speed if the computer in question has no OS and the CPU speed is not listed in the BIOS/POST.