i'm looking for a solution that can determinate if the polarized capacitor is in the right direction in the circuit
OK, interesting question.
In general, a polarised capacitor should always have one end (the positive end) no more negative than the other end.
You might imagine that you could simply place a voltmeter across the capacitor, but that would simply measure the average voltage.
The best approach is to place oscilloscope probes across the capacitor (on DC) and have a look at exactly what the waveform looks like. You would want to look at if there are any excursions into reverse polarity and how they stand against the specifications for the capacitor.
Oddly enough, I was just reading a datasheet today that specified reverse voltage characteristics of a capacitor. In this particular case it recommended no more than 10% of the working voltage of the capacitor and gave leakage characteristics (somewhat higher than for the correct polarity). Frankly, it is not something that I have noticed (or indeed looked for) previously.
(And I can't even recall *WHY* I was looking at the specs of a capacitor?)