No, you probably can't find out exactly how a trojan got on your computer for 100% certainty. But the wikipedia page has a general description of how people might be tricked into getting one. You could think back to if any of that was likely, such as social engineering, etc.:
https://en.wikipedia.org/wiki/Trojan_horse_(computing)
Everything seem good on your computer, working well, etc.?