You can test for IPsec (for ipv4) by doing: modprobe ah4 ; modprobe esp4
If no messages appear (in shell window), then IPSec is present in the kernel.

Cheers