This is a good question, usually i do it based on instincts...[em23]
but if u are not sure about where the emphasis could be, u can either check on the www.dictionary.com to see where the emphasis (') should be, or u can ask ur friends. An observation is that if the word is of french or latin origin, the emphasis usually is on the last e or a... for example: habitué, cosset