"It works fine on mine" isn't much help, so here's what's actually worth checking. TF2 is a Source engine game with modest requirements, which means the usual culprits are narrow and identifiable.
Work through them in order: confirm your graphics drivers are current, verify the game's file integrity through Steam to repair any corrupted downloads, check that you have enough free disk space, and make sure no background application is hogging your memory. If it crashes on launch specifically, look for a missing or blocked DirectX component.
If none of that shifts it, post your full system specifications on the Steam community forums — someone there will be able to tell you precisely what's wrong.