A dedicated Royal Navy sailor will be running the London Marathon to fight against homelessness.