The Sims are not self-aware; they are separate computer programs that run on their own. They have no way of knowing whether they are in a simulation or not. They will only learn they are a part of a simulation game if they are informed. Some artificial intelligence undoubtedly powers Sims in The Sims 4.