Not all life insurance policies have a cash value. For instance, a term life insurance plan does not build cash value inside the policy over time.
So you will have to call your life insurance company and ask if your policy has any cash value, if so, how much, and what amount can you take out as a loan.
In addition, you will have to pay back the money at a certain rate of interest, or they usually reduce the amount of life insurance provided by the life insurance policy.