To check if code is plagiarized, you can use specialized tools like MOSS (Measure of Software Similarity), JPlag, or Codequiry. These tools compare code against a database of known sources and other submissions to detect similarities that might indicate plagiarism.