This isn't the dogs fault - they are pack animals and this one has been stuck in solitary. Call the RSPCA who can at least check it has proper space, food, water and somewhere to do a crap.
We had this problem with a neighbours dog whimpering and howling literally all day every day - OK for them out working, but I often work at home and this noise even penetrated the double glazing!!!
Then they took the dog on holiday, but when they came back the dog was gone. Their story is that it jumped the fence at their holiday house and got run over by a passing car. Personally, I think the poor bastard committed suicide!