Can you cash a check written to you by your insurance company for a car that was totaled but still has remaining payments on it to a finance company?

Sure you can, but you're still responsible for paying off the loan to the finance company. If the check will cover the pay-off, give it to the finance company. If it doesn't, give it to them, anyway. It'll reduce your debt by that much.